<!DOCTYPE html>
<html>
<head>


    <script src="dsbridge.js" type="text/javascript"></script>
</head>
<body>

<p>test3</p>
<button onclick="test3()">test3</button>




<script>






var LaomiGameBridge = {
  uploadimae : {},
  uploadImage : function(result) {
    uploadimae = result;
    LaomiGameApi.sendPthoto();


  },
  success : function(msg) {

     console.log('LaomiGameBridge callback'+msg)
     uploadimae.success(msg)

  },
  test : function() {

     console.log('LaomiGameCallBacktest')
     LaomiGameApi.Test3('test2()');

  },
  apicallback : function(funname,re) {

     console.log(funname+" re: "+re.err_code);


  }
};

function test3(){
    console.log('function test3kkkkk');
    //异步调用
    LaomiGameApi.test3()

                                }

function getTest(){
    console.log('getTest')
    LaomiGameCallBack.test3({
    localId: '',
    isShowProgressTips: 1,
    success: function (res) {
        console.log('res neibu')
        var serverId = res.serverId; // 返回图片的服务器端ID
    }
    });

};
function sendPhoto(){

   var k=LaomiGameApi.sendPhoto('2833691742','4324572915192199079','17082fd618fd5807150bbf1695c6653','LaomiGameCallBack.test()');
     console.log('上传 结果：' + k);
};


function getTest2(){

   LaomiGameCallBack.test();

};

function share(){

   LaomiGameApi.shareText("123");

};

function exit(){

   LaomiGameApi.exit();

};
function getOaid(){

   var k=LaomiGameApi.getOaid();

   LaomiGameApi.showToast(k);
};

function showToast(){
    LaomiGameApi.showToast('nihao');
};

function setIsInstallApkDelete(){
    LaomiGameApi.setIsInstallApkDelete(1);
};

function getIsInstallApkDelete(){


    console.log('getIsInstallApkDelete')

   var k= LaomiGameApi.getIsInstallApkDelete();
    LaomiGameApi.showToast(k);
};

function setIsAutoInstallApk(){
    LaomiGameApi.setIsAutoInstallApk(1);
};

function getIsAutoInstallApk(){

    console.log('getIsAutoInstallApk')
    var k=LaomiGameApi.getIsAutoInstallApk();
    LaomiGameApi.showToast(k);
};


function saveStringToLocal(){
    LaomiGameApi.saveStringToLocal('spassword','123456');
};

function getStringFromLocal(){


   var k= LaomiGameApi.getStringFromLocal('spassword','111111');
    LaomiGameApi.showToast(k);
};

function addDownloadTask1(){


    LaomiGameApi.addDownloadTask("1524","王者修仙","http://d.apps.yayawan.com/apk/yjxxwzxxyyw/0610yjxx001.apk","https://att.yayawan.com/upload/2019/12/05/f3c1eb17eb.png?imageView2/1/w/250/h/250");;

};
function addDownloadTask2(){


    LaomiGameApi.addDownloadTask("1525","三国塔防","http://d.apps.yayawan.com/apk/tfsgztf/0729dfsgc001.apk","https://att.yayawan.com/upload/2020/06/16/0809232527.png?imageView2/1/w/250/h/250");

};


</script>
</body>
</html>
